/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cubelabs.nexus.entity;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 *
 * @author muddu
 */

@Entity
@Table(name="course")
public class Course extends BaseEntity{
		private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private  Long id;
	
	private String courseName;
	private String overview;
	private String outline;
	private String syllabus;
	
	@ManyToOne
	private User instructor;
	
	@OneToMany(mappedBy="course")
	private Set<CourseSubcriptions> courseSubscriptions; 
	
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getOutline() {
		return outline;
	}
	public void setOutline(String outline) {
		this.outline = outline;
	}
	public String getSyllabus() {
		return syllabus;
	}
	public void setSyllabus(String syllabus) {
		this.syllabus = syllabus;
	}
	
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public String getCourseName() {
		return courseName;
	}
	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}
	public User getInstructor() {
		return instructor;
	}
	public void setInstructor(User instructor) {
		this.instructor = instructor;
	}
	public String getOverview() {
		return overview;
	}
	public void setOverview(String overview) {
		this.overview = overview;
	}
	public Set<CourseSubcriptions> getCourseSubscriptions() {
		return courseSubscriptions;
	}
	public void setCourseSubscriptions(Set<CourseSubcriptions> courseSubscriptions) {
		this.courseSubscriptions = courseSubscriptions;
	}
}
